#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
int main(int argc,char *argv[])
{
	char str[10000];
	int file;
	int ret=0;
	file=open(argv[1],O_RDONLY);
	if(file==-1)
	{
		printf("can not find this file");
		return 0;
	}
	while(1)
	{
		ret = read(file,str,10000);
		if(ret<=0)
			break;
	}
	printf("%s\n",str);
	close(file);
	return 0;
}
